home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / X11 / xinit / xinput.d / scim-immodule < prev    next >
Encoding:
Text File  |  2010-09-03  |  1.3 KB  |  54 lines

  1. #
  2. # This configuration file for SCIM is recommended.
  3. #
  4. # Use "X input method" for standard X applications
  5. # Use "SCIM IM module" for GTK and Qt 3 applications if available
  6. #
  7. # Using this configuration may improve some usability for GTK applications
  8. # such as the location of word selection window.
  9.  
  10. # You still need these XIM settings for non-GTK and non-Qt3 programs.
  11. XIM=SCIM
  12. XIM_PROGRAM=/usr/bin/scim
  13. XIM_ARGS="-d"
  14. XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
  15.  
  16. gtkimm_exists () {
  17.     # check if any immodules installed
  18.     for dir in /usr/lib*/gtk-2.0/2.*/immodules; do
  19.         if [ -r ${dir}/im-$1.so ]; then
  20.             return 0
  21.         fi
  22.     done
  23.     return 1
  24.     }
  25.  
  26. if gtkimm_exists scim-bridge; then
  27.   GTK_IM_MODULE=scim-bridge
  28. elif gtkimm_exists scim; then
  29.   GTK_IM_MODULE=scim
  30. else
  31.   GTK_IM_MODULE=xim
  32. fi
  33.  
  34. qtimm_exists () {
  35.     # check if any immodule installed
  36.     for dir in /usr/lib*/qt*/plugins/inputmethods; do
  37.         if [ -r ${dir}/$1.so ]; then
  38.              return 0
  39.         fi
  40.     done
  41.     return 1
  42.     }
  43.  
  44. if qtimm_exists im-scim-bridge; then
  45.   QT_IM_MODULE=scim-bridge
  46. elif qtimm_exists libqscim; then
  47.   QT_IM_MODULE=scim
  48. else
  49.   QT_IM_MODULE=xim
  50. fi
  51.  
  52. DEPENDS="scim,scim-gtk2-immodule,scim-qtimm,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"
  53.  
  54.